﻿@using Website.Models
@model IEnumerable<Website.Models.Product>
@{
    ViewBag.Title = "K-fashion | Thời Trang Công Sở Và Dạo Phố";
    Layout = "~/Views/Shared/_Template.cshtml";
}
@*<style type="text/css">
	.thuMoi {
		display: none;
	}
</style>*@
<link href="@Url.Content("/Content/themes/base/jquery.ui.all.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/jquery-ui-1.8.20.min.js")" type="text/javascript"></script>
<script type="text/javascript">
    $('ul.mainMenu li.home').addClass('selected');
</script>
@*@if (Session["ThuMoi"] == null)
{
    <script type="text/javascript">
        $(document).ready(function () {
            $(".thuMoi").dialog({
                width: '80%',
                modal: true
            });

            $('.ui-dialog-title').hide();
        });
    </script>
}*@
@{
    Session.Add("ThuMoi", true);
}
<div class="topNew">
    <h2>
        Sản Phẩm Mới
    </h2>
    <p>@ViewBag.S</p>
    <ul>
        @foreach (Product p in Model)
        {
            <li class="bg" style="background-image: url(@Url.Content(p.SmallImage))"><a href="@Url.Action("Details", new { productID = p.ProductID })">
                <p>
                    @p.ProductCode
                    @*<br/>
                        @p.PriceLevel.Price.ToString("#,##0") VND*@
                </p>
            </a></li>
        }
        @*<li class="bg one">
            <div class="layer">
                <p>655,000 VND</p>
            </div>
        </li>
        <li class="bg two">
            <div class="layer">
                <p>655,000 VND</p>
            </div>
        </li>
        <li class="bg three">
            <div class="layer">
                <p>655,000 VND</p>
            </div>
        </li>
        <li class="bg four">
            <div class="layer">
                <p>655,000 VND</p>
            </div>
        </li>*@
    </ul>
</div>
